package tables;

import java.sql.Date;

import DBside.Tools.History;

public class UserHistory extends AbstractRelationship{

	History history; 
	Date date;
	int song_id;
	String description;
	String entity_name;
	
	public UserHistory(int userId, int enttiyId, History history, Date date) {
		super(userId, enttiyId);
		this.history=history;
		this.date=date;
	}
	
	public History getHistory() {
		return history;
	}
	public void setSong_id(int song_id) {
		this.song_id = song_id;
	}
	public int getSong_id() {
		return song_id;
	}
	public Date getDate() {
		return date;
	}
	
	public void setHistory(History history) {
		this.history = history;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getDescription()
	{
		return this.description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getEntity_name() {
		return entity_name;
	}
	public void setEntity_name(String entity_name) {
		this.entity_name = entity_name;
	}
	@Override
	public String toString() {
		if(this.description != null)
			return this.description;
		else
			return "";
	}
}
